/*
7. Write a program that gets a number n and after that gets more n numbers and calculates and prints their sum. 
*/
using System;

class numbersCalculateSum
{
    static void Main()
    {
        Console.Write("Enter number of addends: ");
        int numberOFAddends = int.Parse(Console.ReadLine());
        double addends = 0; 
        for (int i = 0; i < numberOFAddends; i++)
        {
            Console.Write("Enter next number: ");
            addends += double.Parse(Console.ReadLine());
        }
        Console.WriteLine("The sum of numbers is: {0}", addends);
    }
}